package top.lgd.base;

import lombok.Getter;

import java.io.Serializable;
import java.util.List;

/**
 * @author YYJ
 * @version 1.0
 * @since 2020/11/4 17:03
 */
@Getter
public class LgdTable<T> implements Serializable {

    private static final long serialVersionUID = -638826902174127732L;

    private boolean success = true;
    private long current;
    private long pageSize;
    private long total;
    private List<T> data;

    public LgdTable(long current, long pageSize, long total, List<T> data) {
        this.current = current;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }
}